package com.yipinhouse.reception.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.reception.client.param.LoginWebParam;
import com.yipinhouse.user.client.param.LoginParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "userWebQueryClient",name="reception",path="reception")
public interface UserWebQueryClient {

    /**
     * 登录
     * @return
     */
    @GetMapping("login")
    public Result login(@RequestParam("account") String account,
                        @RequestParam("password") String password);

    @GetMapping("logout")
    public Result logout();

    /**
     * 查看个人信息
     * @return
     */
    @GetMapping("checkInfo")
    public Result checkInfo();
}
